#if($inFrame != true)
<!DOCTYPE html>
<html lang="cn">
<head>
    <title>中国电信</title>
    #parse("vita/container/include.html")
</head>
<body class="xjapp">
#end
<script id="assistName_$assistName">
        $assist
    $(function(){
        if(typeof assist == "object"){
            var tar = $("#assistName_$assistName").parent();
            if(location.hash != "" && tar.is("body")){
                location.replace(location.href.split("#")[0]);
                return false;
            }
            assist.assistName = "$assistName";
            #if($params && $params != "")
                var params = $params;
                if(!$.isEmptyObject(params)){
                    for(var f in assist.nodes){
                        var url = assist.nodes[f].url, hasMark = url.indexOf("?") > -1 ? true : false;
                        for(var p in params){
                            if(hasMark){
                                url += "&" + p + "=" + params[p];
                            }else{
                                url += "?" + p + "=" + params[p];
                                hasMark = true;
                            }
                        }
                        assist.nodes[f].url = url;
                        break;
                    }
                }
            #end
            var webAssist = vita.widget.require("webAssist");
            webAssist.add(assist).appendTo(tar);
            vita.router.init(webAssist, "activateNode");
        }
        //主要给移动设备提供
        window.doBackbutton = function(){
            history.back();
        };
    });
</script>
#if($inFrame != true)
</body>
</html>
#end